package com.itheima;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo8 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("E:\\itcast\\窗里窗外.txt");

        FileOutputStream fos = new FileOutputStream("day_12work\\窗里窗外.txt");

        int by;
        while ((by = fis.read())!= -1){
            fos.write(by);
        }

        fis.close();
        fos.close();

    }
}
